// ==++== 
//
//   Copyright (c) Microsoft Corporation.  All rights reserved.
//
// ==--== 
/*==============================================================================
** 
** Class: SerializationException 
**
** 
** Purpose: Thrown when something goes wrong during serialization or
**          deserialization.
**
** 
=============================================================================*/
 
namespace System.Runtime.Serialization { 

    using System; 
    using System.Runtime.Serialization;

[System.Runtime.InteropServices.ComVisible(true)]
    [Serializable] public class SerializationException : SystemException { 

        private static String _nullMessage = Environment.GetResourceString("Arg_SerializationException"); 
 
        // Creates a new SerializationException with its message
        // string set to a default message. 
        public SerializationException()
            : base(_nullMessage) {
            SetErrorCode(__HResults.COR_E_SERIALIZATION);
        } 

        public SerializationException(String message) 
            : base(message) { 
            SetErrorCode(__HResults.COR_E_SERIALIZATION);
        } 

        public SerializationException(String message, Exception innerException) : base (message, innerException) {
            SetErrorCode(__HResults.COR_E_SERIALIZATION);
        } 

        [System.Security.SecuritySafeCritical]  // auto-generated 
        protected SerializationException(SerializationInfo info, StreamingContext context) : base (info, context) { 
        }
    } 
}

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// ==++== 
//
//   Copyright (c) Microsoft Corporation.  All rights reserved.
//
// ==--== 
/*==============================================================================
** 
** Class: SerializationException 
**
** 
** Purpose: Thrown when something goes wrong during serialization or
**          deserialization.
**
** 
=============================================================================*/
 
namespace System.Runtime.Serialization { 

    using System; 
    using System.Runtime.Serialization;

[System.Runtime.InteropServices.ComVisible(true)]
    [Serializable] public class SerializationException : SystemException { 

        private static String _nullMessage = Environment.GetResourceString("Arg_SerializationException"); 
 
        // Creates a new SerializationException with its message
        // string set to a default message. 
        public SerializationException()
            : base(_nullMessage) {
            SetErrorCode(__HResults.COR_E_SERIALIZATION);
        } 

        public SerializationException(String message) 
            : base(message) { 
            SetErrorCode(__HResults.COR_E_SERIALIZATION);
        } 

        public SerializationException(String message, Exception innerException) : base (message, innerException) {
            SetErrorCode(__HResults.COR_E_SERIALIZATION);
        } 

        [System.Security.SecuritySafeCritical]  // auto-generated 
        protected SerializationException(SerializationInfo info, StreamingContext context) : base (info, context) { 
        }
    } 
}

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
